import java.util.Arrays;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 高生平
 * Date: 2025-09-13
 * Time: 19:47
 */
public class Test {
    public static int[] myCopyOf (int[] original, int newLength) {
        int[] ret = new int[newLength];
        for (int i = 0; i < newLength; i++) {
            if(i < original.length) {
                ret[i] = original[i];
            }
        }
        return ret;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
        System.out.println(array);
        System.out.println(Arrays.toString(array));
        int[] ret = myCopyOf(array, array.length * 2);
        System.out.println(Arrays.toString(ret));
    }
}
